#ifndef __DDI_RTC_H
#define __DDI_RTC_H

#include "ddi_common.h"

typedef struct __RTCTIME_STR
{
    u16 m_year;         //2000~2049
    u16 m_month;        //1~12
    u16 m_dayofweek;    //0~6
    u16 m_day;          //1~31
    u16 m_hour;         //0~23
    u16 m_minute;       //0~59
    u16 m_second;       //0~59
    u16 m_milliseconds; //0~999
}rtctime_str_t;


s32 ddi_rtc_open(void);
s32 ddi_rtc_close(void);
s32 ddi_rtc_settime(rtctime_str_t *lp_rtctime);
s32 ddi_rtc_gettime(rtctime_str_t *lp_rtctime);

#endif

